namespace KTD.Web.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class 新增租售属性 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Houses", "title", c => c.String());
            AddColumn("dbo.Houses", "money", c => c.String());
            AddColumn("dbo.Houses", "dmoney", c => c.String());
            AddColumn("dbo.Houses", "roomid", c => c.String());
            AddColumn("dbo.Houses", "roomtype", c => c.String());
            AddColumn("dbo.Houses", "houselabel", c => c.String());
            AddColumn("dbo.Houses", "letway", c => c.String());
            AddColumn("dbo.Houses", "area", c => c.String());
            AddColumn("dbo.Houses", "floor", c => c.String());
            AddColumn("dbo.Houses", "direction", c => c.String());
            AddColumn("dbo.Houses", "decorate", c => c.String());
            AddColumn("dbo.Houses", "year", c => c.String());
            AddColumn("dbo.Houses", "source", c => c.String());
            AddColumn("dbo.Houses", "housearea", c => c.String());
            AddColumn("dbo.Houses", "address", c => c.String());
            AddColumn("dbo.Houses", "special", c => c.String());
            AddColumn("dbo.Houses", "salestatus", c => c.String());
            AddColumn("dbo.Houses", "ispub", c => c.String());
            AddColumn("dbo.Houses", "ischeck", c => c.String());
            AddColumn("dbo.Houses", "price", c => c.String());
        }
        
        public override void Down()
        {
            DropColumn("dbo.Houses", "price");
            DropColumn("dbo.Houses", "ischeck");
            DropColumn("dbo.Houses", "ispub");
            DropColumn("dbo.Houses", "salestatus");
            DropColumn("dbo.Houses", "special");
            DropColumn("dbo.Houses", "address");
            DropColumn("dbo.Houses", "housearea");
            DropColumn("dbo.Houses", "source");
            DropColumn("dbo.Houses", "year");
            DropColumn("dbo.Houses", "decorate");
            DropColumn("dbo.Houses", "direction");
            DropColumn("dbo.Houses", "floor");
            DropColumn("dbo.Houses", "area");
            DropColumn("dbo.Houses", "letway");
            DropColumn("dbo.Houses", "houselabel");
            DropColumn("dbo.Houses", "roomtype");
            DropColumn("dbo.Houses", "roomid");
            DropColumn("dbo.Houses", "dmoney");
            DropColumn("dbo.Houses", "money");
            DropColumn("dbo.Houses", "title");
        }
    }
}
